﻿using BarcodeDelay.FrameServer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BarcodeDelay
{
    static class Program
    {
        public static FrmMainNew m_frmain = null;
        public static Object obj_arr_table = new Object();
        public static Object obj_dep_table = new Object();

        public static Object obj_left_count = new Object();

        public static  WechatServer weServer = new WechatServer();
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
           
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            m_frmain = new FrmMainNew();
            if (m_frmain == null)
            {
                return;
            }
            Application.Run(m_frmain);
        }
        public static string getBDTime()
        {
            try
            {
                string webUrl2 = "http://www.baidu.com";// 
                WebRequest request = WebRequest.Create(webUrl2);
                string strDate = ((System.Collections.Specialized.NameValueCollection)(request.GetResponse().Headers)).Get("Date");
                return strDate;
            }
            catch (Exception ex)
            {
                return "2020-01-01 00:00:00";
            }


        }
    }
    
}
